<style type="text/css">
	.ellipText {
		display: inherit;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
</style>
<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['日志信息管理','APP坐标采集']" icon="fa fa-tag" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
					<h2>APP坐标采集</h2>
				</header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<div class="top_module top_module_box">
									<span class="top_module_label module_text">类型</span>
									<select name="" class="top_module_select" [(ngModel)]="type">
										<option value="">全部</option>
										<option value="1">周期</option>
										<option value="2">安装</option>
										<option value="3">维修</option>
										<option value="4">采集</option>
									</select>
								</div>
								<div class="selectDate top_module">
									<table-select-date (outerTime)="getSelectTableTime($event)"></table-select-date>
								</div>
								<button type="button" class="btn btn-primary" (click)="table_search()">查询</button>
							</div>
							<div class="right top-search" style="width: 240px;">
								<input type="text" [(ngModel)]="searchKey" (change)="table_search()" class="search-input" placeholder="账户名称、姓名、站点名称">
								<span class="top-search-box">
									<button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
								</span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>账户</th>
										<th>姓名</th>
										<th>站点名称</th>
										<th>类型</th>
										<th>上报时间</th>
										<th>经度</th>
										<th>纬度</th>
										<th>备注</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData">
										<td>{{row.userName}}</td>
										<td>{{row.name}}</td>
										<td>{{row.pointName}}</td>
										<td>
											<span *ngIf="row.type == 1">周期</span>
											<span *ngIf="row.type == 2">安装</span>
											<span *ngIf="row.type == 3">维修</span>
											<span *ngIf="row.type == 4">采集</span>
										</td>
										<td>{{row.collectTime}}</td>
										<td>{{row.lng}}</td>
										<td>{{row.lat}}</td>
										<td>{{row.remark}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount" [rows]="pageSize" [currentPage]="curPage - 1" (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>